home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
Issue51
/
Construc
/
MainUnit.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1999-09-27
|
546b
|
40 lines
unit MainUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
procedure Log(Str: String);
implementation
{$R *.DFM}
procedure Log(Str: String);
var
f: Text;
begin
{
System.Assign(f,'c:\trace.log');
Append(f);
try
writeln(f,Str)
finally
System.Close(f)
end
}
end;
end.